// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Collections.Generic;
using System.Text;

namespace DataModel
{
    public abstract class ResultsBase
    {
        private List<string> messages = new List<string>();
        private int warningCount = 0;


        public void LogWarning(string format, params object[] args)
        {
            this.warningCount++;

            string message = string.Format(format, args);

            this.messages.Add(message);
        }


        public List<string> Messages
        {
            get { return this.messages; }
        }


        public int WarningCount
        {
            get { return this.warningCount; }
        }
    }
}
